/* Copyright 2007 Sergejs Melderis (sergey.melderis@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
*/

package com.sm.model;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.sql.Time;
import java.util.Date;

/**
 *  @author Sergejs Melderis (sergey.melderis@gmail.com)
 */
public class PerformanceTestBean {
    private BigDecimal bigDecimalValue;
    private String stringValue1;
    private short shortValue;
    private int intValue;
    private String stringValue2;
    private long longValue;
    private String stringValue3;
    private float floatValue;
    private double doubleValue;
    private String stringValue4;
    private Date dateValue;
    private String stringValue5;
    private Time timeValue;
    private Timestamp timestampValue;
    private String stringValue6;

    /**
     * Default constructor.
     */
    public PerformanceTestBean() {

    }

    public PerformanceTestBean(BigDecimal bigDecimalValue, String stringValue1, short shortValue,
                               int intValue, String stringValue2, long longValue,
                               String stringValue3, float floatValue, double doubleValue,
                               String stringValue4, Date dateValue,
                               String stringValue5, Time timeValue, Timestamp timestampValue,
                               String stringValue6) {
        this.bigDecimalValue = bigDecimalValue;
        this.stringValue1 = stringValue1;
        this.shortValue = shortValue;
        this.intValue = intValue;
        this.stringValue2 = stringValue2;
        this.longValue = longValue;
        this.stringValue3 = stringValue3;
        this.floatValue = floatValue;
        this.doubleValue = doubleValue;
        this.stringValue4 = stringValue4;
        this.dateValue = dateValue;
        this.stringValue5 = stringValue5;
        this.timeValue = timeValue;
        this.timestampValue = timestampValue;
        this.stringValue6 = stringValue6;
    }

    public BigDecimal getBigDecimalValue() {
        return bigDecimalValue;
    }

    public void setBigDecimalValue(BigDecimal bigDecimalValue) {
        this.bigDecimalValue = bigDecimalValue;
    }

    public short getShortValue() {
        return shortValue;
    }

    public void setShortValue(short shortValue) {
        this.shortValue = shortValue;
    }

    public int getIntValue() {
        return intValue;
    }

    public void setIntValue(int intValue) {
        this.intValue = intValue;
    }

    public long getLongValue() {
        return longValue;
    }

    public void setLongValue(long longValue) {
        this.longValue = longValue;
    }

    public float getFloatValue() {
        return floatValue;
    }

    public void setFloatValue(float floatValue) {
        this.floatValue = floatValue;
    }

    public double getDoubleValue() {
        return doubleValue;
    }

    public void setDoubleValue(double doubleValue) {
        this.doubleValue = doubleValue;
    }

    public String getStringValue1() {
        return stringValue1;
    }

    public void setStringValue1(String stringValue1) {
        this.stringValue1 = stringValue1;
    }

    public String getStringValue2() {
        return stringValue2;
    }

    public void setStringValue2(String stringValue2) {
        this.stringValue2 = stringValue2;
    }

    public String getStringValue3() {
        return stringValue3;
    }

    public void setStringValue3(String stringValue3) {
        this.stringValue3 = stringValue3;
    }

    public String getStringValue4() {
        return stringValue4;
    }

    public void setStringValue4(String stringValue4) {
        this.stringValue4 = stringValue4;
    }

    public String getStringValue5() {
        return stringValue5;
    }

    public void setStringValue5(String stringValue5) {
        this.stringValue5 = stringValue5;
    }

    public Date getDateValue() {
        return dateValue;
    }

    public void setDateValue(Date dateValue) {
        this.dateValue = dateValue;
    }

    public Time getTimeValue() {
        return timeValue;
    }

    public void setTimeValue(Time timeValue) {
        this.timeValue = timeValue;
    }

    public Timestamp getTimestampValue() {
        return timestampValue;
    }

    public void setTimestampValue(Timestamp timestampValue) {
        this.timestampValue = timestampValue;
    }


    public String getStringValue6() {
        return stringValue6;
    }

    public void setStringValue6(String stringValue6) {
        this.stringValue6 = stringValue6;
    }


    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PerformanceTestBean that = (PerformanceTestBean) o;

        if (Double.compare(that.doubleValue, doubleValue) != 0) return false;
        if (Float.compare(that.floatValue, floatValue) != 0) return false;
        if (intValue != that.intValue) return false;
        if (longValue != that.longValue) return false;
        if (shortValue != that.shortValue) return false;
        if (bigDecimalValue != null ? !bigDecimalValue.equals(that.bigDecimalValue) : that.bigDecimalValue != null)
            return false;
        if (dateValue != null ? !dateValue.equals(that.dateValue) : that.dateValue != null) return false;
        if (stringValue1 != null ? !stringValue1.equals(that.stringValue1) : that.stringValue1 != null) return false;
        if (stringValue2 != null ? !stringValue2.equals(that.stringValue2) : that.stringValue2 != null) return false;
        if (stringValue3 != null ? !stringValue3.equals(that.stringValue3) : that.stringValue3 != null) return false;
        if (stringValue4 != null ? !stringValue4.equals(that.stringValue4) : that.stringValue4 != null) return false;
        if (stringValue5 != null ? !stringValue5.equals(that.stringValue5) : that.stringValue5 != null) return false;
        if (stringValue6 != null ? !stringValue6.equals(that.stringValue6) : that.stringValue6 != null) return false;
        if (timeValue != null ? !timeValue.equals(that.timeValue) : that.timeValue != null) return false;
        if (timestampValue != null ? !timestampValue.equals(that.timestampValue) : that.timestampValue != null)
            return false;

        return true;
    }


}
